package com.im.partchat.mvp.model.login;

import com.im.partchat.bean.Department;
import com.im.partchat.bean.Group;
import com.im.partchat.bean.User;
import com.im.partchat.bean.UserBean;
import com.im.partchat.bean.reponsed.BaseResponse;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by fzl on 2017/6/28 0028.
 * VersionCode: 1
 * Desc:
 */

public interface LoginModel {
    Observable<BaseResponse<UserBean>> login(String userName, String password);
    Observable<BaseResponse<List<User>>> getUserList(String userId);
    Observable<BaseResponse<List<Department>>> getDepartment();
    Observable<BaseResponse<List<Group>>> getGroupList(String userId);
    Observable<BaseResponse<String>> changePaw(String userId,String oldPassword,String newPassword);
}
